///gameObjectFactory(int tileX, int tileY, int velX, int velY, int spriteID, int gameObjectID, GameObject obj)
var gameObject = argument6;
gameObject.tileX = argument0;
gameObject.tileY = argument1;
gameObject.velX = argument2;
gameObject.velY = argument3;
gameObject.spriteID = argument4;
gameObject.gameObjectID = argument5;

gameObject.x = gameObject.tileX * global.TILE_SIZE;
gameObject.y = gameObject.tileY * global.TILE_SIZE;

return gameObject;
